//
//  ViewController.m
//  LancooEyeCarePro
//
//  Created by dangwc on 2019/10/22.
//  Copyright © 2019 dangwc. All rights reserved.
//

#import "ViewController.h"
#import "LancooEyeCareModeManager.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UISwitch *eyeCareSwitch;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //初始状态
    _eyeCareSwitch.on = [[LancooEyeCareModeManager shareEyeCare] eyeCareModeStatus];
    
    
}

- (IBAction)controlSwitchEvent:(UISwitch *)sender {
    


    [[LancooEyeCareModeManager shareEyeCare] switchEyeCareMode:sender.on];
    
    
}

@end
